#!/usr/bin/python

from pymongo import MongoClient

client = MongoClient()
db = client['tut']
c = db['person']

def insert(name, age):
    c.insert({'name':name, 'age':age})


insert('zhangsan', 20)
insert('lisi', 17)
insert('zhouwu', 23)
